#include "noisemaker.h"

#include <QIntValidator>
#include <QString>
#include <QApplication>

noiseMaker::noiseMaker(int min, int max, QObject * parent):QIntValidator(min, max, parent)
{

}


QValidator::State noiseMaker::validate(QString& input, int& pos) const
{

        QValidator::State noise;

        noise = QIntValidator::validate(input, pos);

        if (noise == QValidator::Invalid)
            QApplication::beep();
        return noise;


}

